import Vue from 'vue';
import axios from 'axios';

const baseUrl = '/api';

export let getData = (url, params) => {
    return axios({
        url: baseUrl + url,
        method: 'get',
        params: params
    })
}